package cn.stylefeng.guns.modular.hx.storage.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.order.entity.HxOrderPut;
import cn.stylefeng.guns.modular.hx.order.model.params.HxOrderPutDetailedParam;
import cn.stylefeng.guns.modular.hx.storage.entity.HxStoragePutDetailed;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStoragePutDetailedParam;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageStockParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageOffShelfResult;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStoragePutDetailedResult;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageStockResult;
import cn.stylefeng.guns.sys.modular.system.entity.User;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 入库单明细表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-08-14
 */
public interface HxStoragePutDetailedService extends IService<HxStoragePutDetailed> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-08-14
     */
    void add(HxStoragePutDetailedParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-08-14
     */
    void delete(HxStoragePutDetailedParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-08-14
     */
    void update(HxStoragePutDetailedParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-14
     */
    HxStoragePutDetailedResult findBySpec(HxStoragePutDetailedParam param);

    HxStorageStockResult findBySpec1(HxStorageStockParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-14
     */
    List<HxStoragePutDetailedResult> findListBySpec(HxStoragePutDetailedParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-08-14
     */
     LayuiPageInfo findjiluPageBySpec(HxStoragePutDetailedParam param,String condition);

     LayuiPageInfo findPageBySpec(HxStoragePutDetailedParam param,String condition);

 	LayuiPageInfo findqualityPageBySpec(HxStoragePutDetailedParam param, String condition);

 	LayuiPageInfo findAppDailingquPageBySpec(HxStoragePutDetailedParam param, String condition);

	void submissionOrder(HxOrderPut hxOrderPut);

	boolean saveBatchList(List<HxStoragePutDetailedParam> list);

	HxStoragePutDetailedResult details(HxStoragePutDetailedParam param);

	/**
	 * 查询商品列表
	 * @param hxStoragePutDetailedParam
	 * @return
	 */
	List<HxStoragePutDetailedResult> restfinddetailedSumlist(HxStoragePutDetailedParam param);

	HxStoragePutDetailedResult restfinddetailedSum(HxStoragePutDetailedParam param);

	List<HxStoragePutDetailedResult> restfinddetailedSumDetailedlist(HxStoragePutDetailedParam param);

	void allqualityupdateBySpec(HxStoragePutDetailedParam param);

	HxStoragePutDetailedResult findCheckBySpec(HxStoragePutDetailedParam check);

	void deleteBySpec(HxStoragePutDetailedParam param);

	ResponseData editGoods(User user, HxStoragePutDetailedParam hxStoragePutDetailedParam);

	List<HxStoragePutDetailedResult> appfindlistyilingqu(HxStoragePutDetailedParam hxStoragePutDetailedParam);

	List<HxStorageStockResult> storageStocklist(HxStorageStockParam hxStorageStockParam);

	HxStoragePutDetailedResult appPutfindBySpec(HxStoragePutDetailedParam param);

	ResponseData put(User user, HxStoragePutDetailed detailed,HxStoragePutDetailedParam hxStoragePutDetailedParam);

	void updatePrint(HxStoragePutDetailedParam param);

	LayuiPageInfo findwarehousingstat(HxStoragePutDetailedParam hxStoragePutDetailedParam, String condition);

	ResponseData return_put(User user, HxStoragePutDetailed detailed,
			HxStoragePutDetailedParam hxStoragePutDetailedParam);

	ResponseData addGoods(User user, HxStoragePutDetailedParam hxStoragePutDetailedParam);

	List<HxStoragePutDetailedResult> findShangjiaData(HxStoragePutDetailedResult hxStoragePutDetailedResult);

	List<HxStoragePutDetailedResult> findStoragePutDetailsList(HxStoragePutDetailedParam hxStoragePutDetailedParam);

    List<HxStoragePutDetailedResult> findlistAllBySpec(HxStoragePutDetailedParam hxStoragePutDetailedParam, String condition, Long operateId);

	HxStoragePutDetailedResult count(HxStoragePutDetailedParam hxStoragePutDetailedParam, String condition, Long operateId);

	HxStoragePutDetailedResult count1(HxStoragePutDetailedParam hxStoragePutDetailedParam, String condition, Long operateId);

    List<HxStoragePutDetailedResult> listAll1(HxStoragePutDetailedParam hxStoragePutDetailedParam, String condition, Long operateId);

	List<HxStoragePutDetailedResult> findAppDailingquBySpec(HxStoragePutDetailedParam hxStoragePutDetailedParam,
			String condition);

	List<HxStoragePutDetailedResult> findShelvesData(HxStoragePutDetailedParam hxStoragePutDetailedParam);

	Integer findyituijianDetailed(HxStoragePutDetailedParam hxStoragePutDetailedParam);
}
